package cn.itcast.wanxinp2p.api.consumer;

import cn.itcast.wanxinp2p.api.account.model.comsumer.ConsumerDTO;
import cn.itcast.wanxinp2p.api.account.model.comsumer.ConsumerRegisterDTO;
import cn.itcast.wanxinp2p.api.consumer.model.ConsumerRequest;
import cn.itcast.wanxinp2p.api.depository.model.GatewayRequest;
import cn.itcast.wanxinp2p.common.domain.RestResponse;

public interface ConsumerApi {
    /**
    * 用户注册
    * @param consumerRegisterDTO
    * @return
    */
    RestResponse register(ConsumerRegisterDTO consumerRegisterDTO);

    /**
     * 生成开户请求数据
     * @param consumerRequest 开户信息
     * @return
     */
    RestResponse<GatewayRequest> createConsumer(ConsumerRequest consumerRequest);


    /**
     * 获取登录用户信息
     * @return
     */
     RestResponse<ConsumerDTO> getMyConsumer();

}